<template>
  <refresh-list
    ref="refreshList"
    :enable-pull-refresh="false"
    @pull-load="onListLoad"
  > 
    <template #loading>
      <van-loading :color="rootThemeColor" type="spinner">{{ listLoadingText }}</van-loading>
    </template>
    <template v-if="data.length">
      <film-item
        class="sm-unit"
        v-for="sm in data"
        :key="sm.media_id"
        :title="sm.title"
        :cover-path="sm.cover"
        :type-name="sm.season_type_name"
        :all-params="sm"
      />
    </template>
   </refresh-list>
</template>

<script>
import FilmItem from '@/components/film-item/FilmItem.vue'
import SearchResultBase from './SearchResultBase.vue'
export default {
  name: 'SearchResultBangumi',
  extends: SearchResultBase,
  components: {
    FilmItem
  },
  props: {
    searchType: {
      type: String,
      default: 'media_bangumi'
    }
  }
}
</script>

<style>

</style>
